﻿using System;
using ProtoBuf;

namespace LingDong.IndexEntities.Document
{
    [ProtoContract]
    [Serializable]
    public class OriginalDocumentEnity : DocumentEnity
    {
        #region Constructor

        private OriginalDocumentEnity()
        {
        }

        public OriginalDocumentEnity(int docID, string url, string content)
            : base(docID, url)
        {
            this.Content = content;
        }

        #endregion
        

        #region ToString
        
        public override string ToString()
        {
            return String.Format("DocID: {0}, URL: {1}, Content: {2}",
                DocID, URL, Content);
        }

        #endregion
        

        #region Feilds
        
        /// <summary>
        /// Original Document Content
        /// </summary>
        [ProtoMember(1)]
        public string Content { get; set; }

        #endregion
    }
}
